package com.yanqu.road.server.cmd.activity.jiuzhou;

import com.yanqu.road.message.YanQuMessage;
import com.yanqu.road.pb.activity.jiuzhou.JiuZhouProto;
import com.yanqu.road.server.cmd.base.AbstractCommand;
import com.yanqu.road.server.command.Cmd;
import com.yanqu.road.server.gameplayer.GamePlayer;
import com.yanqu.road.server.gameplayer.module.activity.jiuzhou.JiuZhouModule;
import com.yanqu.road.server.protocol.GameProtocol;

@Cmd(code = GameProtocol.S_JIU_ZHOU_GET_GUESS_RIGHT_PLAYER_LIST,desc = "获取竞猜正确玩家列表")
public class JiuZhouGetGuessRightPlayerCmd extends AbstractCommand {

    private JiuZhouProto.JiuZhouGetGuessRightPlayerListReqMsg reqMsg;

    @Override
    public boolean parseData(YanQuMessage packet) throws Exception {
        reqMsg = JiuZhouProto.JiuZhouGetGuessRightPlayerListReqMsg.parseFrom(packet.getBytes());
        return true;
    }

    @Override
    public void execute(GamePlayer player, YanQuMessage packet) throws Exception {
        ret = player.getModule(JiuZhouModule.class).getGuessRightPlayerList(reqMsg);
    }

    @Override
    public void sendData(GamePlayer player) {

    }
}
